package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.Degrees;
import com.ruoyi.business.domain.model.CheckDegreeHis;
import com.ruoyi.business.domain.model.NoCheckDegreeDormitory;
import com.ruoyi.business.domain.model.useDegreesSumEntity;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 宿舍电度数Mapper接口
 *
 * @author ruoyi
 * @date 2023-06-28
 */
public interface DegreesMapper extends BaseMapper<Degrees> {

    List<Degrees> getList(Degrees entity);

    List<useDegreesSumEntity> useDegreesSum(Integer year);

    /**
     * 获取未抄表的宿舍信息
     * */
    List<NoCheckDegreeDormitory> getNoCheckDegreeDormitory(String readdate);
    /**
     * App端获取抄表历史信息
     * */
    List<CheckDegreeHis> getHisList(String buildingname);

    void del(Long id);

}
